/**
 * Created by Administrator on 2019/7/1.
 */
if(document.body.offsetWidth>"600") {
    window.onscroll = function () {
        var t = document.querySelector("#toTop");
        if (document.documentElement.scrollTop > 600 || document.body.scrollTop > 600) {
            t.style.display = "block";
        } else {
            t.style.display = "none";
        }
        t.addEventListener('click', function () {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            })

        })
    };
}
